package com.mapper;

import com.bean.Log;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LogMapper {

    Log getLogById(Integer logId);

    List<Log> getLogsWithKeyword(String keyword, int offset, int limit);

    int countLogsWithKeyword(String keyword);

    int insertLog(Log log);

    int updateLog(Log log);

    int deleteLogById(Integer logId);

}